package com.ruoyi.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.course.domain.ExamInvoiceHeader;
import com.ruoyi.course.vo.ExamInvoiceHeaderVo;
import com.ruoyi.course.mapper.ExamInvoiceHeaderMapper;
import com.ruoyi.course.service.IExamInvoiceHeaderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 发票抬头管理Service业务层处理
 *
 * @author Tellsea
 * @date 2025-10-22
 */
@Service
public class ExamInvoiceHeaderServiceImpl extends ServiceImpl<ExamInvoiceHeaderMapper, ExamInvoiceHeader> implements IExamInvoiceHeaderService {

    @Override
    public TableDataInfo<ExamInvoiceHeaderVo> queryList(ExamInvoiceHeaderVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamInvoiceHeaderVo> queryAll(ExamInvoiceHeaderVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamInvoiceHeaderVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
